package com.ihealthway.all.interfaces.dwihealth.vo;

import javax.xml.bind.annotation.*;

/**
 * Head Element
 *
 * @author 凡梦星尘(elkan1788@gmail.com)
 */
@XmlRootElement(name = "Head")
@XmlType(propOrder = { "tranDate", "tranTime", "dataType", "accessKey", "resultCode", "resultComment"})
public class HeadElement {

    /**
     * 发生交易的日期String格式"YYMMDD"
     */
    private String TranDate;
    /**
     * 发生交易的时间String格式"HHMMSS"
     */
    private String TranTime;
    /**
     * 数据类型，A-新增,U-修改
     */
    private String DataType;
    /**
     * 加密密钥，用于校验
     */
    private String AccessKey;
    /**
     * 结果代码： 1 成功， 0 失败
     */
    private String ResultCode;
    /**
     * 结果描述
     */
    private String ResultComment;

    @XmlElement(name = "TranDate")
    public String getTranDate() {
        return TranDate;
    }

    public void setTranDate(String tranDate) {
        TranDate = tranDate;
    }

    @XmlElement(name = "TranTime")
    public String getTranTime() {
        return TranTime;
    }

    public void setTranTime(String tranTime) {
        TranTime = tranTime;
    }

    @XmlElement(name = "DataType")
    public String getDataType() {
        return DataType;
    }

    public void setDataType(String dataType) {
        DataType = dataType;
    }

    @XmlElement(name = "Access-key")
    public String getAccessKey() {
        return AccessKey;
    }

    public void setAccessKey(String accessKey) {
        AccessKey = accessKey;
    }

    @XmlElement(name = "ResultCode")
    public String getResultCode() {
        return ResultCode;
    }

    public void setResultCode(String resultCode) {
        ResultCode = resultCode;
    }

    @XmlElement(name = "ResultComment")
    public String getResultComment() {
        return ResultComment;
    }

    public void setResultComment(String resultComment) {
        ResultComment = resultComment;
    }

    @Override
    public String toString() {
        return "HeadElement{" +
                "TranDate='" + TranDate + '\'' +
                ", TranTime='" + TranTime + '\'' +
                ", DataType='" + DataType + '\'' +
                ", AccessKey='" + AccessKey + '\'' +
                ", ResultCode='" + ResultCode + '\'' +
                ", ResultComment='" + ResultComment + '\'' +
                '}';
    }
}
